package testing;


public class RandomPredictor implements NetflixPredictor {

	public double predictRating(int userID, short movieID) {
		return (Math.random() * 5) + 1;
	}

	public double predictRating(int userID, short movieID, String date) {
		return (Math.random() * 5) + 1;
	}

	public static void main(String args[]) {
		RandomPredictor tp = new RandomPredictor();
		System.out.println("Calculating error on probe dataset");
		System.out
				.println("This will take a long time if the data hasn't been previously calculated");

		double error = PredictionTester.getProbeError(tp);

		System.out.println("Error on probe dataset is: " + error);
		String outputFilename = "/home/bob/qual01.txt";
		System.out.println("Creating Qualification file at " + outputFilename);
		PredictionTester.createQualifyingSubmission(tp, outputFilename);
	}

}
